<template>
  <div class="company-a-w">
    <div class="company-time">{{ item.companyStayTime }}</div>
    <div class="company-detail">
      <img :src="item.logo" alt=""/>
      <div class="company-name">{{ item.companyName }}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "CompanyA",
  props: ['item']
}
</script>

<style lang="scss" scoped>
@import "src/assets/common";

.company-a-w {
  padding: 0 10px;
  margin-bottom: 5px;
  height: 30px;
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;

  $color: rgb(150, 150, 150);

  .company-time {
    border-radius: 3px;
    height: 100%;
    padding: 0 10px;
    font-size: 16px;
    color: $color;
    font-weight: bolder;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;

    //&:after {
    //  position: absolute;
    //  content: "";
    //  background: $c2;
    //  bottom: -2px;
    //  height: 3px;
    //  width: 30%;
    //  border-radius: 3px;
    //  background: $color;
    //}
  }

  .company-detail {
    box-sizing: border-box;
    height: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;


    .company-name {
      font-size: 12px;
      height: 30px;
      font-weight: bolder;
      color: $c2;
      margin: 0 10px;
      display: flex;
      align-items: center;
    }

    img {
      height: 30px * 0.8;
      padding-left: 10px;
      position: relative;
      bottom: -2px;
    }
  }

}
</style>